home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / prn_page.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  2KB  |  52 lines

  1. #ifndef __PRINT_PAGE_H_
  2. #define __PRINT_PAGE_H_
  3.  
  4. /* Page have the following areas:
  5.  
  6. All information included here is printed once - as Report header.
  7. PAGEBAND -------------------------------------------------------------------
  8. All information included here is printed on every page - as page header.
  9.     TABLEBAND --------------------------------------------------------------
  10.     Information here is repeated for every Record in table.
  11.     RECORDBAND ---------------------------------------------------------
  12.     ADDINFO ...,  FIELD...
  13.  
  14.     RECORDBAND ---------------------------------------------------------
  15.     Information here is repeated for every Record in table.
  16.     TABLEBAND --------------------------------------------------------------
  17.     All information included here is printed on every page - as page footer.
  18. PAGEBAND -------------------------------------------------------------------
  19. All information included here is printed once - as Report footer.
  20.  
  21. */
  22.  
  23. #include "prn_rec.h"
  24.  
  25. struct PAGE_LAYOUT
  26.     {
  27.     int page_band_top;          // Layout of Page elements
  28.     int page_band_bottom;
  29.     int table_band_top;
  30.     int table_band_bottom;
  31.     int record_band_top;
  32.     int record_band_bottom;
  33.  
  34.     ADD_LIST* pg_top_info;      // Band specific information.
  35.     ADD_LIST* pg_bottom_info;   // Coordinates of elements are given relative
  36.     ADD_LIST* tb_top_info;      // to the corresponding band position, which
  37.     ADD_LIST* tb_bottom_info;   // in turn, could depend on situation.
  38.     ADD_LIST* rc_top_info;      // We do not use rc_... info for label mode
  39.     ADD_LIST* rc_bottom_info;   // Reports.
  40.  
  41.     RECORD_LAYOUT* record;      // Record have not left-top pos. data - it
  42.                 // always printed on current position.
  43.  
  44.     PAGE_LAYOUT(int p_band_top, int p_band_bottom, int t_band_top,
  45.     int t_band_bottom, int r_band_top, int r_band_bottom,
  46.     ADD_LIST* p_top_info, ADD_LIST* p_bottom_info, ADD_LIST* t_top_info,
  47.     ADD_LIST* t_bottom_info, ADD_LIST* r_top_info,
  48.     ADD_LIST* r_bottom_info,
  49.     RECORD_LAYOUT* rec);
  50.     };
  51.  
  52. #endif __PRINT_PAGE_H_